import useRequest from "@/api/useRequest";

export class storySentenceController {
  static addOrUpdateStorySentence(data:any): Promise<any> {
    return useRequest({
      url: "/storySentence/addOrUpdateStorySentence",
      method: "post",
      data
    })
  }

  static batchHandlerSentences(data:any): Promise<any> {
    return useRequest({
      url: "/storySentence/batchHandlerSentences",
      method: "post",
      data
    })
  }

  static deleteStorySentence(data:any): Promise<any> {
    return useRequest({
      url: "/storySentence/deleteStorySentence",
      method: "post",
      data
    })
  }

  static rewriteStoryBoard(data:any): Promise<any> {
    return useRequest({
      url: "/storySentence/rewriteStoryBoard",
      method: "post",
      data
    })
  }
}

